package com.example.onlinemusic.tools;

import lombok.Data;

/**
 * 响应体类⼯具类
 * @param <T>
 */
@Data
public class ResponseBodyMessage<T> {
    private int status;// 状态码 为0代表成功，负数代表失败
    private String message;// 描述信息
    private T data;// 数据

    public ResponseBodyMessage(int status, String message, T data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }
}
